<?php
 include('./connectbase.php');

 $id = $_REQUEST['id'];

 $sql = "select * from product where id=$id";

 $res = $cont->query($sql);

 $row = $res->fetch_assoc();

 echo json_encode($row);
?>